package com.pompom.matchcrawler;

import java.util.Map;

import nl.ansuz.android.steam.dota.request.match.GetMatchDetails;
import nl.ansuz.android.steam.dota.response.match.GetMatchDetailsResponse;
import nl.ansuz.android.steam.request.ISteamRequest;

public class MatchFetcher extends AbstractFecher<GetMatchDetailsResponse>{
	private Long lMatchId;

	public MatchFetcher(Long lMatchId) {
		this.lMatchId = lMatchId;
	}

	@Override
	protected ISteamRequest getSteamRequest() {
		return new GetMatchDetails();
	}

	@Override
	protected void setParams(Map<String, String> params) {
		params.put(GetMatchDetails.Parameter.MATCH_ID, lMatchId.toString());
	}

	@Override
	protected Class<GetMatchDetailsResponse> getResponseType() {
		return GetMatchDetailsResponse.class;
	}
}
